package com.jiawa.wiki.req;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;


@Data
@ToString
public class PageReq {
     @NotNull(message = "页码不能为空")
     private int page;
     @NotNull(message = "每页条数不能为空")
     @Max(message = "最大条数为1000",value = 1000)
     private int size;
}
